package com.hanma.bean;

public class User {
	private Integer id;
	private String username;
	private String nickname;
	private String password;
	private String con_password;
	private String tel;
	private String email;
	private String head;
	private Integer status;
	private Integer is_del;

	public User() {
	}
	public User(String username,String password, String con_password,String head) {
		this.username = username;
		this.password = password;
		this.con_password = con_password;
		this.head = head;
	}
	public User(Integer id, String username,String password) {
		this.id = id;
		this.username = username;
		this.password = password;
	}
	public User(Integer id,String nickname, String password,String tel, String email) {
		this.id = id;
		this.nickname = nickname;
		this.password = password;
		this.tel = tel;
		this.email = email;
	}
	public User(Integer id,String username,String nickname, String password,String tel, String email, String head) {
		this.id = id;
		this.username = username;
		this.nickname = nickname;
		this.password = password;
		this.tel = tel;
		this.email = email;
		this.head = head;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getCon_password() {
		return con_password;
	}

	public void setCon_password(String con_password) {
		if(con_password != password){
			return;
		}
		this.con_password = con_password;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getHead() {
		return head;
	}

	public void setHead(String head) {
		this.head = head;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getIs_del() {
		return is_del;
	}

	public void setIs_del(Integer is_del) {
		this.is_del = is_del;
	}

	@Override
	public String toString() {
		return "User{" +
				"id=" + id +
				", username='" + username + '\'' +
				", nickname='" + nickname + '\'' +
				", password='" + password + '\'' +
				", con_password='" + con_password + '\'' +
				", tel='" + tel + '\'' +
				", email='" + email + '\'' +
				", head='" + head + '\'' +
				", status=" + status +
				", is_del=" + is_del +
				'}';
	}
}
